<%inherit file="/base.html"/>

<%def name="main_heading()">${c.main_heading}</%def>

<%def name="toolbar()">
	${h.dropdown('district', c.district_id, c.districts, class_='active-select')}
	<a href="${h.url_gen(district='$id')}" class="hidden-url"></a>
	${h.print_version()}
</%def>

<%def name="content()">

<table class="data-table">
	<tr>
		<th rowspan="2">${_('--')}</th>
		<th rowspan="2">${_('Total, persons')}</th>
		<th colspan="2">${_('including')}</th>
	</tr>
	<tr>
		<th>${_('males')}</th>
		<th>${_('females')}</th>
	</tr>
	<tr>
		<th>${_('Staff')}:</th>
		<td>${c.staff()}</td>
		<td>${c.staff(gender='M')}</td>
		<td>${c.staff(gender='F')}</td>
	</tr>
	<tr>
		<th colspan="4">${_('Age')}</th>
	</tr>
	<tr>
		<th>${_('%s years and more') % '60'}</th>
		<td>${c.age(min=60)}</td>
		<td>${c.age(min=60, gender='M')}</td>
		<td>${c.age(min=60, gender='F')}</td>
	</tr>
	<tr>
		<th>${_('%s years') % '55-59'}</th>
		<td>${c.age(55, 59)}</td>
		<td>${c.age(55, 59, gender='M')}</td>
		<td>${c.age(55, 59, gender='F')}</td>
	</tr>
	<tr>
		<th>${_('%s years') % '41-54'}</th>
		<td>${c.age(41, 54)}</td>
		<td>${c.age(41, 54, gender='M')}</td>
		<td>${c.age(41, 54, gender='F')}</td>
	</tr>
	<tr>
		<th>${_('%s years') % '28-40'}</th>
		<td>${c.age(28, 40)}</td>
		<td>${c.age(28, 40, gender='M')}</td>
		<td>${c.age(28, 40, gender='F')}</td>
	</tr>
	<tr>
		<th>${_('%s years and less') % '27'}</th>
		<td>${c.age(max=27)}</td>
		<td>${c.age(max=27, gender='M')}</td>
		<td>${c.age(max=27, gender='F')}</td>
	</tr>
</table>

</%def>